package cn.itsource.singleton.lazy;

/**
 *	测试单例模式
 */
public class SingletonTest {

	public static void main(String[] args) {
		//测试方式：多次调用获取对象的方法，用==比较即可
		Singleton instance = Singleton.getInstance();
		Singleton instance2 = Singleton.getInstance();
		System.out.println(instance == instance2);
	}

}
